import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Meun',
      component: () => import('../views/Meun.vue'),
      children: [
        {
          path: '/Goodinfo',
          name: 'Goodinfo',
          component: () => import('../views/Goodinfo.vue')
        },
        {
          path: '/breedinfo',
          name: 'breedinfo',
          component: () => import('../views/breedinfo.vue')
        },
        // 可以添加更多子路由
      ]
    }
  ]
})

export default router
